#include <stdio.h>

#include <iostream>
#include <string>
using namespace std;

int main() {
    int N;
    scanf("%d", &N);
    int res = 0;
    for (int i = 0; i < N; ++i) {
        int tmp;
        scanf("%d", &tmp);
        res += tmp;
    }

    printf("%d", res);
    return 0;
}
